<?php if (!defined('THINK_PATH')) exit();?><script type="text/javascript">
    $(function () {
        $(".datepicker").datepicker({
            language: "zh-CN",
            autoclose: true,//选中之后自动隐藏日期选择框
            clearBtn: true,//清除按钮
            todayBtn: true,//今日按钮
            format: "yyyy-mm-dd"//日期格式，详见 http://bootstrap-datepicker.readthedocs.org/en/release/options.html#format
        });
    });
</script> 
<style type="text/css">
	.form-group{
		padding: 5px 0;
	}
	.table th, .table td { 
		text-align: center; 
		height:20px;
	}	
</style>			
<div class="modal-header">
	<button class="close" data-dismiss="modal"><span>&times;</span></button>
	<h4 class="modal-title">产品登记</h4>
</div>
<form  action="<?php echo U('Depart/Prod/add_prod');?>" method="post">
	<div class="modal-body">
		<div class="container-fluid">
			<div class="form-group">
				<label for="prodcode" class="control-label">产品编号或批号</label>
				<input type="text" name="prodcode" class="form-control">
			</div>
			<div class="form-group">
				<label for="spec" class="control-label">规格型号</label>
				<input type="text" name="spec" class="form-control">
			</div>

		  	<div class="form-group">
		  		<div class="col-sm-6">
					<label for="qty" class="control-label">数量</label>
					<input type="text" name="qty" class="form-control" value="1">				
				</div>
				<div class="col-sm-6">
					<label for="type" class="control-label">类别</label>
					<select class="form-control" name="type">
					    <?php if(is_array($map['type'])): foreach($map['type'] as $key=>$v): ?><option value=<?php echo ($v['id']); ?>><?php echo ($v['title']); ?></option><?php endforeach; endif; ?>
				    </select>
			    </div>
			<div class="clean"></div>				
		</div>
	</div>
	</div>
	<div class="modal-footer">
		<input type="submit" class="btn btn-default" value="登记">
	</div>
</form>